﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ReportB.aspx.cs" Inherits="ReportB" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
       <link rel="stylesheet" type="text/css" href="../skin/css/base.css" />
    <script type="text/javascript">
       
        function checkPeriod() {
            var StartTime = document.getElementById("tbStartTime");
            var EndTime = document.getElementById("tbEndTime");
            var reg = /^([1-9]\d{3})(0[1-9]|1[0-2])$/;

            if (StartTime.value!=""&&!reg.test(StartTime.value)) {
                alert("起始时间格式不正确,正确的格式形如：201206！")
                StartTime.focus();
                return false;
            }
            if (EndTime.value!=""&&!reg.test(EndTime.value)) {
                alert("结束时间格式不正确,正确的格式形如：201206！")
                EndTime.focus();
                return false;
            }
        }
  </script>
</head>
<body>
    <form id="form1" runat="server">
 

      <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <br />
      <asp:Button ID="btnViewReport" runat="server" Text="查看报表"  onclick="btnViewReport_Click" />
         
        
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="600px" 
            Width="100%">
        </rsweb:ReportViewer>
     
    </form>
</body>
</html>
